package com.company.card_service.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.card_service.model.EmployeeView;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.card_service.vo.EmployeeAllUsers;
import com.company.card_service.vo.PassageFromVo;
import com.company.card_service.vo.ViewCountVo;
import com.company.card_service.vo.respvo.ChatUserVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:06
 */
@Mapper
public interface EmployeeViewMapper extends BaseMapper<EmployeeView> {

    List<ViewCountVo> getChartData(Long employeeId, String startDate, String endDate);

    List<ChatUserVo> getUserDay(Integer employeeId,String format2,String format1);

    List<EmployeeAllUsers> selectAllUsers(Page<EmployeeAllUsers> pageParam, Integer employeeId);

    Integer getNewCount(Integer id,Integer employeeId);

    List<EmployeeAllUsers> queryAllUsersByPhone(Page<EmployeeAllUsers> pageParam, Integer employeeId,String phone);

    List<ViewCountVo> getChartDataByCompany(Long companyId, String startDate, String endDate);
}
